package com.supertange.miniapp.wepet.common.utils;

import javax.servlet.http.HttpServletRequest;

/**
 * @author hetang
 * @date
 *
 */
public class HttpUtil {
    /**
     * 获取header
     */
    public static String getHeader(HttpServletRequest request,String header) {
        return request.getHeader(header);
    }
    /**
     * 获取访问ip
     * @param request 请求
     * @return
     */
    public static String getUserIp(HttpServletRequest request){
        return request.getRemoteAddr();
    }

}
